﻿using ChurchDiary.DAL.Contract;
using ChurchDiary.DAL.Methods;
using ChurchDiary.TableEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChurchDiary.BLL
{
    public class BLL_Login
    {
        public EntityLogin GetLoginUserInfo(string username,string Password)
        {
            ILogin log = new DAL_Login();
            return log.GetLoginDetails(username, Password);
        }
        public EntityUserSettings GetUserSettings(Guid UserId)
        {
            IUser User = new DAL_User();
            return User.GetUserSettings(UserId);
        }
        public string UpdateUserSettings(EntityUserSettings Settings)
        {
            IUser User = new DAL_User();
            return User.UpdateUserSettings(Settings);
        }
    }
}
